package top.itmeans.yes.mapper;

import top.itmeans.yes.dto.ProductCategoryWithChildrenItem;
import top.itmeans.yes.entity.ProductCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 产品分类 Mapper 接口
 * </p>
 *
 * @author Yiming.Cao
 * @since 2022-04-28
 */
public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {
    /**
     * 获取商品分类及其子分类
     */
    List<ProductCategoryWithChildrenItem> listWithChildren();
}
